/*
 * All content copyright http://www.j2eefast.com, unless
 * otherwise indicated. All rights reserved.
 * No deletion without permission
 */
package com.j2eefast.web.mapper;

import com.j2eefast.web.entity.SkuEntity;
import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

/**
 * sku Mapper接口
 * @author: ZhouZhou
 * @date 2021-06-11 10:29:56
 */
public interface SkuMapper extends BaseMapper<SkuEntity> {

    /**
     * 自定义分页查询
     * @param  page
     * @param  skuEntity 实体类
     */
    Page<SkuEntity> findPage(IPage<SkuEntity> page,
                             @Param("sku") SkuEntity skuEntity,
                             @Param("sql_filter") String sql_filter);

    /**
     * 通过ID查询
     * @param pkId 查询ID
     * @return
     */
    SkuEntity findSkuById(@Param("pkId") Long pkId);

    /**
     * 查询列表
     * @param skuEntity 查询条件对象
     * @return
     */
    List<SkuEntity> findList(SkuEntity skuEntity);

}
